<?php
namespace Api\Controller;
use Common\Controller\HomeBaseController; 

class YuyueController extends HomeBaseController {
	
	
	function _initialize() {
		parent::_initialize();
	
	}
	
	//计算订单价格（第一步）
	function return_riqis(){
		$date=I("get.date");
		$times=F('Var_fuwu_time');
		
		foreach ($times as $k=>$v){
			
			$shijian=$date." ".$v['name'];
			
			$s=D("Order")->where(array("date"=>$shijian))->count();

			if($s<2){
				
				$return_times[]=array(
					
						"value"=>$shijian,
						"name"=>$v['name']
				);
				
				
			}
			
		
			
			
			
			
		}
		
		
		$this->ajaxReturn($return_times,"JSON");
		
		
		
	}
	

    

}